package com.zmm.zebulon.module.bpm.biz.framework.bpm.core;

import lombok.AllArgsConstructor;
import org.springframework.context.ApplicationEventPublisher;
import org.springframework.validation.annotation.Validated;

import javax.validation.Valid;

/**
 * description: {@link BpmProcessInstanceResultEvent} 的生产者
 *
 * @author zebulon
 * package com.zmm.zebulon.module.bpm.biz.framework.bpm.core
 * name: BpmProcessInstanceResultEventPublisher
 * date 2024/1/10 23:45
 */
@AllArgsConstructor
@Validated
public class BpmProcessInstanceResultEventPublisher {

    private final ApplicationEventPublisher publisher;

    public void sendProcessInstanceResultEvent(@Valid BpmProcessInstanceResultEvent event) {
        publisher.publishEvent(event);
    }

}
